'use strict';

const Controller = require('egg').Controller;

class ClasssortController extends Controller {
  async index() {
    const ctx = this.ctx;

    console.log('params', ctx.query);
    const params = ctx.query;
    const sorttext1 = params.sorttext1;
    const sorttext2 = params.sorttext2;
    const classlistinfo = await ctx.service.class.getClasslist(params.getnum, params.currentid, sorttext1, sorttext2);
    console.log(classlistinfo);
    this.ctx.body = classlistinfo;
  }

}

module.exports = ClasssortController;
